When a gap is present in the alignment inside the stop codon, the trimming doesn't retain the full stop codon. This must be fixed.