Fixed an issue that was removing tei header during validation.