Fix several things and partially put jet problem in Lua