fixed automate empty string