Fix the start/end reporting issue to avoid computation of incomplete segments