fix some bugs in analyse transits