Resumable.cancel function fix