[#24] fix buffer still opening issue