Fixed a few errors with BufferObject