Hopeful fix to a bug where verify ancestors gets stuck in infinite loop.