map has some painful bugs