fix reading of empty ranges
Merge pull request #11 from domsj/fix-range

fix reading of empty ranges