Fixed an error in control script