fix for bad index buffer init.