Bug fix for varieties without flags