Toby's First Law
If a section of code does not work, but after looking at it you’ve come to the conclusion that it simply has to work, it’s more likely that it’s a different section causing the problem and the bit you’ve been staring at the past three hours is fine.