bugfix for picklist assignment error after removing the extra loop