fix invalid match and remove print of json