fixed  bug in Cost Parameter Deterministic