Fix bug while creating new post