several error fixes with vertexLoader and grid