make last page go correctly to last page