control script fixed