diff --git a/src/calibre/ebooks/lrf/html/convert_from.py b/src/calibre/ebooks/lrf/html/convert_from.py
index 2554d91f15..8eeff46d79 100644
--- a/src/calibre/ebooks/lrf/html/convert_from.py
+++ b/src/calibre/ebooks/lrf/html/convert_from.py
@@ -32,7 +32,6 @@ from calibre.ebooks.lrf.html.table import Table
from calibre import filename_to_utf8, setup_cli_handlers, __appname__, \
fit_image, LoggingInterface, preferred_encoding
from calibre.ptempfile import PersistentTemporaryFile
-from calibre.ebooks.metadata.opf import OPFReader
from calibre.devices.interface import Device
from calibre.ebooks.lrf.html.color_map import lrs_color
from calibre.ebooks.chardet import xml_to_unicode
@@ -106,6 +105,8 @@ class HTMLConverter(object, LoggingInterface):
(re.compile(r'()', re.IGNORECASE|re.DOTALL),
strip_style_comments),
+ # Remove self closing script tags as they also mess up BeautifulSoup
+ (re.compile(r'(?i)