fixes the post-udpate hook