fix log displaying glitches