fix chi^2 filter in --rg