SelectedInv bugfix