fix echo errors