fix a bug with enumerate's symbol lookup