Fix a bug with crafting keys