Fix bug in the update work.