diff --git a/src/parserlib/CommonParserUtil.hs b/src/parserlib/CommonParserUtil.hs
--- a/src/parserlib/CommonParserUtil.hs
+++ b/src/parserlib/CommonParserUtil.hs
@@ -492,13 +492,13 @@
   -- AST
   ST.StateT (LexerParserState a) m ast
   
-runYapbAutomaton flag (rm_spec @ AutomatonSpec {
+runYapbAutomaton flag (rm_spec@(AutomatonSpec {
       am_initState=initState,
       am_actionTbl=actionTbl,
       am_gotoTbl=gotoTbl,
       am_prodRules=prodRules,
       am_parseFuns=pFunList
-   }) nextTerminal =
+   })) nextTerminal =
 
       do let initStack = push (StkState initState) emptyStack
          run Nothing initStack Nothing
@@ -851,13 +851,13 @@
 
 _handleParseError
   compCandidatesFn 
-  (hpeOption @ HandleParseError {
+  (hpeOption@(HandleParseError {
       debugFlag=flag,
       searchMaxLevel=maxLevel,
       simpleOrNested=isSimple,
       postTerminalList=terminalListAfterCursor,
       nonterminalToStringMaybe=_nonterminalToStringMaybe,
-      presentation=howtopresent})
+      presentation=howtopresent}))
   state stk automaton = 
   let ccOption = CompCandidates {
         cc_debugFlag=flag,
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: 14a727bdc5e1411df0e55e6e3e8773c45508eef14b581150e5bfd37fd8d6a367
+-- hash: 32f1cadd82bb926fdd3eb1f2135b5f51d9810df76c812b40a242371ea1ae14e0
 
 name:           yapb
-version:        0.2
+version:        0.2.1
 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
