fixes bug where factory is added instead of builder to builders