It is disheartening when you spend a lot of time working out the best approach and some detail bites you in the butt.  You recovered nicely, though.  Onward!