Correcting the text and last page number