Fixed bug in nodeFactory for generic components.