fix bug in find_transition()