"Fix the cause, not the symptom", you would think a head doctor said it to the house surgeon, but one of my earlier mentors told me that.
When you see a bug, it's not about going and fixing it with the first idea that comes to your mind. Always, try to determine the root cause and refactor the code/schema from scratch if need be. "Long term gains, than short term gains" was his idea.