It works now. Lua table indexes surprisingly start at 1.