fixed some of the memory management in productformatcollection