Fixed post creating and updating