fix bug in lua-monip module