Fix deletion of component parts.