Fix a bug on a horizontal scrolled page