Found and fixed a bug in engine.componentAdded