buffer refres bug corrected