fixes multiple page ranges