Fix various order of exposition to lua