One of the arguments you are calling is found, but, the Variable type you presented it as returns a table, not what ever you have it as in one of your function arguments.
Seems to be an error in the API, also our API has been updated, there's intruction for the new lua API somewhere.