fixed an odd bug where selecting a building didn't work after the first time the map was loaded