Fix: add repository path in factory