diff --git a/src/fire.rs b/src/fire.rs index 6609e2af..534ca564 100644 --- a/src/fire.rs +++ b/src/fire.rs @@ -505,7 +505,7 @@ pub fn add_fire_to_rec( } let aux_array: AuxArray = (&precisions).into(); let aux_array_field = Aux::ArrayU8(aux_array); - record.remove_aux(b"aq").unwrap_or(()); // remove any existing ML field + rec.record.remove_aux(b"aq").unwrap_or(()); // remove any existing ML field rec.record .push_aux(b"aq", aux_array_field) .expect("Cannot add FIRE precision to bam");