Fixed problem with getting nans for grp out of make_grp