fixes minibuf