set bufferLoaded to true for loaded buffers

set bufferLoaded to true for loaded buffers, fixes issue when setBuffer
is called before load.