In failed cases the debug printing was going out of bounds
Merge pull request #528 from Juniper/rajreddy_R1.05_qed

In failed cases the debug printing was going out of bounds