fix for regex pattern