fix scroll animation bug