fixed building refresh bug