fix range bug (used without name in antlr syntax) in register name