fixing pdf page change