fixed bug - selecting values and setting them in foreignField