correctly use  as range start
Merge pull request #3 from krtek4/bugfix

correctly use $min as range start