fixed GeneralizedCylinder bug