fixing a component registry bug