fixed a incorrect memory type bug in config_gen.py