fix lua invocation