Minor bug fixes on saving posts