Fixed a bug in add post.