fix map alignment and a few other minimap tweaks