echo error fix for mac