Fix Network.check_valid_range