Fix scroll detect issue