fix update hook