Fixing the carousel bug