Fixed Error with building AST with multiple scope.