applied giveownership-history patch by ThiefMaster