Fixed some syntax errors for post_hook