fix a bug when read calculating continuous pages