fixed bug in creation of Partner w/o name or code.