fix some bugs of MyBuildingGenerator