fixed regression in regex