Bug fix on transitions target events in a nested state. Needs checking. Removed debug prints