fix echo bug