client and a server bug

Signed-off-by: Haohua Li <lihaohua90@gmail.com>