Fix dependencies when changing the name of a component