fix logic whether selected object is group object.