Fix loot syntax errors