Attempts to fix loot bugs