Fix bad range parsing.
Merge pull request #253 from trishume/fix-range-parsing

Fix bad range parsing.