Fixing broken config check