Fixed a crash if there's no previous config.