fix behavior of duplicated transition
fix calculation at end of time