fixing problem when the wrapped line is the last of last page but not
the first of next page.