fixed some bugs in the post