Dynamic Component Attributes not Saving

I made a series of cabinets as dynamic components that can be resized. When I first made them, everything worked fine. I saved the file and then the next day when I opened it again, a lot of the attributes no longer function. They look like the screenshot below:
Example

What is causing this?

I think I’ve figured it out myself. I copied a dynamic component and changed its name. When I did that, that’s when it stopped working. I simply didn’t discover it until I reopened the file. If you change the name of something you have to go through all the attributes and change all the references there as well. Basically the # sign and the red font means that’s an error in your code.