fixed bugs in post