Bug fix for carousel