fix to remove internal fields from csv