fixing more post_hook errors