Fix scroll animation bug.