Fix loot_template