make update work correctly