fix printMap