fix compile / slightly improve minimap loading (where is the bug?)