Change the union mode to group mode in the rate method