fixes NPE due unsafe enchantments on configuration generating.