Fixed upload task bug