Minor fixes to de-filter script