[PATCH] Fix segfault with broken config