Fixed 'Replace only the first match' reported issue.