fix #33 throw "empty_group" error when a group is empty