There seems to be a problem in the dynamic theme routine. http://data.mapguide.com/mapguide/gt/index.php Notice how if a layer already has a theme, when you create a new one using Query GT, the second category in the old theme is still there.