Fixed issues with editing loot.