fixed a bug in comment_controller