Fixed data problem in factory.all