fix problems with the carousel