fix bug that allow empty match, changed line limit to 255
another bug fix