Fix deleting turnkey object bug