Well, get over it. Change happens, and sometimes it's because we find bugs.
But when you go in to correct the bug, don't leave...I'm going to call them artifacts in the code. When you're troubleshooting a bug with ThisMethodWillChange(x, y, z), and you find out that y is not necessary because it's actually already figured into x, Clean it up.