Fixed detectBuildings + click buildings