fixed wrong page numbers displaying