Fix minimap crash