fix the bug in ownership