bug fixed when generating AES config file