Fixed "selectedGroups" Bug

Issue reinitiating selectedGroups dictionary causing recursive adding.