Fix bug with multiple `update`s in one tick