Lua Interface: Fix debug condition