Fix server to send reply properly.