fixing update hook