Fix funcmap in parser