Bug fix when removing items from carousel