Fixes Syntax Errors in controller.