fix crash in empty group