Fixed bug with functionDeclaration