correct syntax errors in passing commands to the controller