fix for moveOffset code when it writes out the footer.