Minor change to code for culture search

Minor change to code so that trait.selectedVariable is assigned the trait object, instead of just trait id.