Fixed constructing the config repository