fix minor problem with swept shapes in cd