Fix LoopEnd for BufferData