I have a problem with my excel based BOM template.

I have created an excel based BOM template. When I insert it into my drawing it comes in correct. But if I rebuild the file it adds another line to my BOM exactly as the first one. If I close and reopen the file it doubles the number of lines in the BOM. What am I doing wrong?

SolidworksDrawings And Detailing