Remove debug errors from base_controller.