Fix pageup bug on first page