fix bug in map hinting