fix for selected items on panels