Fixed wrong page number on last page