Fix import cancel crash