tentative fix for the nasty lua crash

Lua is still disabled, I will reenabled it after I have some independant testing