Range checking fixed
Merge pull request #10 from jerrinot/range-dix

Range checking fixed