Fix for when no items are selected