Fix NetworkServer setHandlers error.