Fix server code.