Fixed bug in factory refactor