Fixed bug when adding new post