Fix a bug in the checker map function (the infamous javascript loop-scope bug).