Fixed issues with composite state history controlled behavior.