fix issue when creating a new post in simple-blog.