fix the code, works with gm_config -dye