fixing error with EOM string