#238 Fix some bugs in post.php