Fix scroll jumping issue