Fixed undo profile activation for end of event