commit before change edge types for better fsm detection