Fix bug in post_controller.