Fixes the infinite loop on config overrides.