Fix issue when no columns are selected