Not sure when I broke it, but this was wrong.  Good thing it is just debug code.