handles ttml parsing errors
fixes structural constraints check