Fixed saving empty groups'