fix for isValidConfig