fix regex filtering