Fix save data
Revert "Merge pull request #442 from livathinos/426_clear_groups_of_selected"

This reverts commit e5828c8df0822961ad265c15226b0acf91b3bf66, reversing
changes made to 804c9fb02b0551d04b1306e917517bbe5959c797.