Fixed bug in factory