fixed some bugs on the post page