Fix for vertexbuffer reference

Fix for vertexbuffer reference