Lua: fixed problem 12