Fix update hook