Fixed small bug in server.methods