Fix minimap generation