Fixed minor error in server.
Minor bugs again!