Fixes factory function usage
Merge pull request #2 from sagikazarmark/patch-1

Fixes factory function usage