fixed issue with server not sending response