Fix modal class in timelines tree