fix bugs in blog_controller