Fixed last page complete detection