fixed when adding building the cost is calculated