fixed crach when create new post.