fixed the carousel issue