Resumable cancel function fix