fix regex removal