Fixes multiple config loading. Closes #973. Rel: #945.