Fixed the bug for displaying whether a building is legal to place.