diff --git a/CHANGELOG b/CHANGELOG
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,4 +1,8 @@
-0.8.1, release 202-12-16
+0.8.2, release 2020-12-17
+
+* Fix initialisation of fancyTable (#137)
+
+0.8.1, release 2020-12-16
 
 * Add a missing file to the cabal file to fix 0.8 release
 
diff --git a/eventlog2html.cabal b/eventlog2html.cabal
--- a/eventlog2html.cabal
+++ b/eventlog2html.cabal
@@ -1,6 +1,6 @@
 cabal-version:       2.4
 Name:                eventlog2html
-Version:             0.8.1
+Version:             0.8.2
 Synopsis:            Visualise an eventlog
 Description:         eventlog2html is a library for visualising eventlogs.
                      At the moment, the intended use is to visualise eventlogs
diff --git a/src/Eventlog/Detailed.hs b/src/Eventlog/Detailed.hs
--- a/src/Eventlog/Detailed.hs
+++ b/src/Eventlog/Detailed.hs
@@ -117,7 +117,7 @@
 initTable :: Bool -> T.Text
 initTable b = "$(document).ready(function() {\
         \$(\".closureTable\").fancyTable({\
-        \    sortColumn:" <> if b then "8" else "3" <> ",\
+        \    sortColumn:" <> (if b then "8" else "3") <> ",\
         \    pagination: true,\
         \    perPage:10,\
         \    globalSearch:false,\
