fix to transition.cancel for nil transition