Fixed message construction in server.