fixed get_calc_params bug