Fixed a small bug on the server.