 			switch result {
 			case .success(let feedSpecifiers):
 				guard let bestFeedSpecifier = FeedSpecifier.bestFeed(in: feedSpecifiers), let url = URL(string: bestFeedSpecifier.urlString) else {
-					self.refreshProgress.completeTask()
+					BatchUpdate.shared.end()
+					self.refreshProgress.clear()
 					completion(.failure(AccountError.createErrorNotFound))
 					return
 				}
 				
 				if account.hasWebFeed(withURL: bestFeedSpecifier.urlString) {
-					self.refreshProgress.completeTask()
+					BatchUpdate.shared.end()
+					self.refreshProgress.clear()
 					completion(.failure(AccountError.createErrorAlreadySubscribed))
 					return
 				}
 				
-				self.accountZone.createWebFeed(url: bestFeedSpecifier.urlString, editedName: name, container: container) { result in
+				self.accountZone.createWebFeed(url: bestFeedSpecifier.urlString, editedName: editedName, container: container) { result in
 
 					self.refreshProgress.completeTask()
 					switch result {
 					case .success(let externalID):
 						
 						let feed = account.createWebFeed(with: nil, url: url.absoluteString, webFeedID: url.absoluteString, homePageURL: nil)
-						feed.editedName = name
+						feed.editedName = editedName
 						feed.externalID = externalID
 						container.addWebFeed(feed)
 

						}

					case .failure(let error):
						completion(.failure(error))
					}
				}
								
			case .failure:
				self.refreshProgress.clear()
				completion(.failure(AccountError.createErrorNotFound))
			}


							if let parsedFeed = parsedFeed {
								account.update(feed, with: parsedFeed, {_ in
									BatchUpdate.shared.end()
									completion(.success(feed))
								})
							}
