fix BufferSource with loop