fixed compile error in controller