fix crash when building structures outside the map
work on structure naming dialog appearance