fix bug for cur_value