Wrong return datatype fixed in the factory