Fixed some bugs in the posts