Fixed small bug in server