Fix for index buffers