Fix problem of add new config keys when upgrade. references #2288