fixed show/hide infobar when buffer empty