Get rid of declaration of mainCarousel