Fixing control script