Fix the bug error in computing the start value of each page