Bug fix for deregistering a component.