lua api : fix an incorrect name in api