filename correction in ApplySampling