To reproduce:
Fetch, build and install mutt-kz (https://github.com/karelzak/mutt-kz.git). Set whatever IMAP account on it to have messages to test with. Open it and open a message. Hide and show back the sidebar (with 'b'). Repeat the same on xterm or urxvt and compare the outputs.