Fix mainConfigFile duplicated