fixed lua return value bug