Fixes timeline to_json/to_xml.