Partial fix segmentation fault
TODO: groupby_value