Fixing selecteItem var