fix to saving group issue