Fix control scripts