fixing issue with addSFR not writing all segments to Mat2