Fixed bug where getComponent was using ComponentFactory instead of
Component