diff --git a/templates/history.tmpl b/templates/history.tmpl
index 3db5f3c7c13..25d70cf93fc 100644
--- a/templates/history.tmpl
+++ b/templates/history.tmpl
@@ -9,6 +9,7 @@
#if $refresh
+
#end if
diff --git a/test/base/twilltestcase.py b/test/base/twilltestcase.py
index 5ed3630825e..d018c720851 100644
--- a/test/base/twilltestcase.py
+++ b/test/base/twilltestcase.py
@@ -290,7 +290,7 @@ class TwillTestCase(unittest.TestCase):
count += 1
tc.go("./history")
page = tc.browser.get_html()
- if page.find('add_refresh( 9 );') > -1:
+ if page.find( '' ) > -1:
time.sleep( sleep_amount )
sleep_amount += 1
else: