Fix document validation

fix