fix regex matching