Fix when config is undefined.