Fixed bug in server.