fixed getlist function of buildings