Fix bug where config is loaded multiple times.