Corrected a bug in matchpairs for html