diff --git a/lib/BulkHtmlLoader.js b/lib/BulkHtmlLoader.js
index 6360f4a..7f10e88 100644
--- a/lib/BulkHtmlLoader.js
+++ b/lib/BulkHtmlLoader.js
@@ -128,9 +128,9 @@ BulkHtmlLoader.prototype = {
q.concurrency = that._maxConcurrentConnections;
// Final callback when queue completes
- q.drain = function() {
+ q.drain(function() {
callback(null, that._queue);
- };
+ });
q.push(queue);
return that;
diff --git a/package.json b/package.json
index 815d738..2a9183d 100644
--- a/package.json
+++ b/package.json
@@ -35,7 +35,7 @@
],
"license": "MIT",
"dependencies": {
- "async": "^2.1.4",
+ "async": "^3.0.0",
"bluebird": "^3.4.7",
"cheerio": "^0.22.0",
"lodash": "^4.17.4",