smurf: Take a copy of ref NDF to avoid modifying the original