Fixing client to properly hand write response