fix movingBuffer