diff --git a/src/Lib/Script/Ast/Parser/IrRoot.hh b/src/Lib/Script/Ast/Parser/IrRoot.hh
index afe926cd1d11d2bb7cdf7cd090b15aca4a1ba0e0..63aca34fd1586f68ba29dc7f96c27e2594aa6f1f 100644
--- a/src/Lib/Script/Ast/Parser/IrRoot.hh
+++ b/src/Lib/Script/Ast/Parser/IrRoot.hh
@@ -40,9 +40,6 @@ while (tokenListIsNotEmpty(tokens)) {
                                  firstToken.toString());
     }
 
-    /* DEBUG */
-    std::cerr << firstToken.toString() << "\n";
-
     /*
     ** Parse attribute. We need to take all the tokens in another vector and
     ** construct the attribute after the next object is completed
@@ -117,6 +114,7 @@ while (tokenListIsNotEmpty(tokens)) {
         tokensForInnerInstructions.erase(std::begin(tokensForInnerInstructions));
         tokensForInnerInstructions.pop_back();
 
+        getInnerTokenOpt(tokenListPop(&tokensForSignature)).assertTypeSimple(TOKEN_FUNCTION);
         Token name = getInnerTokenOpt(tokenListPop(&tokensForSignature));
         name.assertType(Token::Type::QNAME);
 
@@ -145,6 +143,7 @@ while (tokenListIsNotEmpty(tokens)) {
         tokensForInnerInstructions.erase(std::begin(tokensForInnerInstructions));
         tokensForInnerInstructions.pop_back();
 
+        getInnerTokenOpt(tokenListPop(&tokensForSignature)).assertTypeSimple(TOKEN_JOB);
         Token name = getInnerTokenOpt(tokenListPop(&tokensForSignature));
         name.assertType(Token::Type::QNAME);