Fixed the post functionality