fixing bug where numbers were not properly placed in AST