Fix #375 add sub state in statemachine diagram