fix a bug about 'group adds to an object