diff --git a/CHANGELOG b/CHANGELOG
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+- 0.5.13.0
+    * Fix issue with shebang code
+
 - 0.5.12.0
     * Add support for shebang at start of file
 
diff --git a/src/Language/Haskell/Stylish/Parse.hs b/src/Language/Haskell/Stylish/Parse.hs
--- a/src/Language/Haskell/Stylish/Parse.hs
+++ b/src/Language/Haskell/Stylish/Parse.hs
@@ -31,7 +31,7 @@
 -- | Remove shebang from the first line
 unShebang :: String -> String
 unShebang str
-    | "#!" `isPrefixOf` str = unlines $ drop 1 $ lines str
+    | "#!" `isPrefixOf` str = unlines $ ("" :) $ drop 1 $ lines str
     | otherwise             = str
 
 
diff --git a/stylish-haskell.cabal b/stylish-haskell.cabal
--- a/stylish-haskell.cabal
+++ b/stylish-haskell.cabal
@@ -1,5 +1,5 @@
 Name:          stylish-haskell
-Version:       0.5.12.0
+Version:       0.5.13.0
 Synopsis:      Haskell code prettifier
 Homepage:      https://github.com/jaspervdj/stylish-haskell
 License:       BSD3
