fixing bug in turret control script