fix cancel action when uploading existing files