fixes crash in minimap generator for some of maps