Change in factory file to fix circleci load error