make correlation work when an activity is cancelled