fixed no automation check and error