Fixed config loading bug