I feel good that my first thought of fixing it would have created the solution. There were obvious errors in my mind that I would fix without knowing the whole dissertation on why it happened. So maybe if the question was, "Can you repair this code", I would excel.
It is likely one of these "trust your gut" situations.