fix for invalid regexp