added nil to contract.parentContractId