prevent to go on out of ranges page