fix: add user ref in factory