Fix initialisation of transitionOccurred