I haven't had this particular problem but have purchased fabric or a pattern without realizing I already have it. I have also put a selection of fabrics I like together in a zip-lock bag, no pattern. Perhaps you could make a list with the pattern names and fabric colours you have for when you go shopping.