fix nil function call in ownership code.