Fixed possible bug when saving TTML - thx Krystian :)