prevent to go on out of ranges page
Merge pull request #79 from jkarkoszka/master

prevent to go on out of ranges page