fix a crash in config