Make update hook to work.