Fix post creation error