fix minibuf