Validate range
Merge pull request #1443 from erwinwinder/master

Validate range