I dont use EP, so im not sure. But I guess you can check your ptoduct tables, and check the master categories id field of the products having problems. What are the current values in there? And are they valid categories id?