fix echo server's bug