Fix bug with animation on index page