diff --git a/src/parserlib/CommonParserUtil.hs b/src/parserlib/CommonParserUtil.hs
--- a/src/parserlib/CommonParserUtil.hs
+++ b/src/parserlib/CommonParserUtil.hs
@@ -402,7 +402,7 @@
       case action of
         Accept -> do
           debug flag "Accept"
-          putStrLn $ terminalToString terminal {- debug -}
+          debug flag $ terminalToString terminal {- debug -}
           
           case stack !! 1 of
             StkNonterminal (Just ast) _ -> return ast
@@ -411,7 +411,7 @@
         
         Shift toState -> do
           debug flag ("Shift " ++ show toState)
-          putStrLn $ terminalToString terminal {- debug -}
+          debug flag $ terminalToString terminal {- debug -}
           
           let stack1 = push (StkTerminal (head terminalList)) stack
           let stack2 = push (StkState toState) stack1
diff --git a/test/Spec.hs b/test/Spec.hs
--- a/test/Spec.hs
+++ b/test/Spec.hs
@@ -2,7 +2,7 @@
 
 main :: IO ()
 main = do
-  text <- readProcess "test.sh" [] ""
+  text <- readProcess "./test/test.sh" [] ""
   putStrLn text
   return ()
   
diff --git a/yapb.cabal b/yapb.cabal
--- a/yapb.cabal
+++ b/yapb.cabal
@@ -4,10 +4,10 @@
 --
 -- see: https://github.com/sol/hpack
 --
--- hash: 16df070449e5bdf4422c57c84ee5baa14a57cd1c98ab276c87e1e250f47fe403
+-- hash: 83066d4d451ae0ff04c47672b47198ec2dd5f553401ce0104962f9ff1409446e
 
 name:           yapb
-version:        0.1.3.1
+version:        0.1.3.2
 synopsis:       Yet Another Parser Builder (YAPB)
 description:    A programmable LALR(1) parser builder system. Please see the README on GitHub at <https://github.com/kwanghoon/yapb#readme>
 category:       parser builder
