[#19] Fixed group upserting in syncing client