fixing bugs

The most important may be fixing an error thrown by the SuperMDA gui
when adding and subtracting positions or groups.