Fix TOS validation.