hope that this can solve the LuaAI memory leak....