Fix option to cal residual plot