SequenceGroup selection = new SequenceGroup();\r
SequenceGroup sg = av.alignment.findGroup(av.alignment.getSequenceAt(seq));\r
selection.setStartRes(0);\r
- selection.setEndRes(av.alignment.getWidth());\r
+ selection.setEndRes(av.alignment.getWidth()-1);\r
for (int i =0; i< sg.getSize(); i++)\r
selection.addSequence(sg.getSequenceAt(i));\r
\r