Fix bug in regex.