resolved a bug when retrieving the levels of a dimension with only one level