fixed typos in insertFooter and insertPageCounter methods