diff --git a/lib/htmlToXlsx.js b/lib/htmlToXlsx.js
index <HASH>..<HASH> 100644
--- a/lib/htmlToXlsx.js
+++ b/lib/htmlToXlsx.js
@@ -55,9 +55,7 @@ module.exports = function (reporter, definition) {
     if (htmlToXlsxOptions.htmlEngine == null) {

       if (conversions.chrome) {

         htmlToXlsxOptions.htmlEngine = 'chrome'

-      }

-

-      if (conversions.phantom) {

+      } else if (conversions.phantom) {

         htmlToXlsxOptions.htmlEngine = 'phantom'

       }
fix default htmlEngine should be chrome when it is present