Index: applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelCol.java
===================================================================
--- applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelCol.java	(revision 26830)
+++ applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelCol.java	(revision 26831)
@@ -46,8 +46,9 @@
 							if (button == offButton) {
 								if (stackCol.size() != 0) {
+									JRadioButton btnI = stackCol.get(stackIdx);
 									dlg.mark.subColour(ent, stackIdx);
-									stackCol.get(stackIdx).removeActionListener(alStack);
-									stackColours.remove(stackCol.get(stackIdx));
-									stack.remove(stackCol.get(stackIdx));
+									btnI.removeActionListener(alStack);
+									stackColours.remove(btnI);
+									stack.remove(btnI);
 									stackCol.remove(stackIdx);
 									if ((stackCol.size() == stackIdx) && (stackIdx != 0))
@@ -58,8 +59,9 @@
 								dlg.mark.addColour(ent, stackIdx, col);
 								stackCol.add(stackIdx, new JRadioButton(new ImageIcon(getClass().getResource("/images/ColourButton.png"))));
-								stackCol.get(stackIdx).setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
-								stack.add(stackCol.get(stackIdx));
-								stackColours.add(stackCol.get(stackIdx));
-								stackCol.get(stackIdx).addActionListener(alStack);
+								JRadioButton btnI = stackCol.get(stackIdx);
+								btnI.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
+								stack.add(btnI);
+								stackColours.add(btnI);
+								btnI.addActionListener(alStack);
 							} else {
 								dlg.mark.setColour(ent, stackIdx, col);
