set factoryFn to first element in select