Fixed bug in factory refactor
Merge pull request #6 from SpaceProphet/master

Fixed bug in factory refactor