syntax error in controller fixed