lua backend: small fixes.