fix percentage of page view bug