fix debug to properly work with outputBufferBits()