minor bugfix when parsing macros