Fix Network.check_valid_range

**Resolves issue #738.**