fixed a bug about attaching new post to a blog