Trying to fix syntax error in control script