fix buffer queue