fix bug in map.py