diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
 ## Changelog for the `threepenny-gui` package
 
+**0.4.0.1** -- Bugfix release.
+
+* Fix CSS bug for `grid` function.
+
 **0.4.0.0** -- Snapshot release.
 
 * New `UI` monad for easier JavaScript FFI and recursion in FRP.
diff --git a/src/Graphics/UI/Threepenny/Internal/Types.hs b/src/Graphics/UI/Threepenny/Internal/Types.hs
--- a/src/Graphics/UI/Threepenny/Internal/Types.hs
+++ b/src/Graphics/UI/Threepenny/Internal/Types.hs
@@ -37,7 +37,13 @@
 newtype ElementId = ElementId BS.ByteString
     deriving (Data,Typeable,Show,Eq,Ord)
 
-instance NFData ElementId where rnf (ElementId x) = rnf x
+instance NFData ElementId where
+    rnf (ElementId x) =
+#if MIN_VERSION_bytestring(0, 10, 0)
+        rnf x
+#else
+        BS.length x `seq` ()
+#endif
 
 type EventId  = String
 type Handlers = Map EventId (E.Handler EventData)
diff --git a/src/Graphics/UI/driver.css b/src/Graphics/UI/driver.css
--- a/src/Graphics/UI/driver.css
+++ b/src/Graphics/UI/driver.css
@@ -1,3 +1,3 @@
-.tabel      { display: table; }
+.table { display: table; }
 .table-row  { display: table-row; }
 .table-cell { display: table-cell; }
diff --git a/threepenny-gui.cabal b/threepenny-gui.cabal
--- a/threepenny-gui.cabal
+++ b/threepenny-gui.cabal
@@ -1,5 +1,5 @@
 Name:                threepenny-gui
-Version:             0.4.0.1
+Version:             0.4.0.2
 Synopsis:            GUI framework that uses the web browser as a display.
 Description:
     Threepenny-GUI is a GUI framework that uses the web browser as a display.
