pagerange recognices smaller 2nd value