fix echo problem