Fix map generation.