fixed problem when abort an upload