it should be setting a component to null as well.