Bug fix to control file