fixed empty group bug