fixed syntax error in controller