added error
fix app_controller