Fix server writing more than it should.