Fixed issues regarding selecting active items in UI.