fix map.

https://class.coursera.org/progfun-002/assignment/part_results?part_id=6