issue #8 solved with this commit.
Changed method that deals with incorrect order of transitions, 
and put it within the reduction method