fixed errors in upload task