fixed a bug when switch to new config files was made