fixed a panic in ServerMachine