fixed compilation error in server code