fix bug when creating a new blog post