Fixed bug with api_key processing versus Lua version (due to zero-based vs 1-based based)