Fix a bug with conf file parsing, rearrange setting some config struct items