Fixed crash in case of no config.