fixed some glitches in debug drawing