fix bug: response not been sent completely