Fix a bug where max_updates_per_transaction would not be respected.