Fixes a bug with the carousel.