bug fix regex matcher