fix null for newline at the end of the page