fix in index matches on preg_match