This commit fixes one of the bugs mentioned yesterday. Now cancelling a transform will result in the right behaviour.