fix bug in lua-monip