fixes the validation test, avoids infinite loop