fixed display bug in debugging code