correction in page algorithm when filter applayed