fix cms optimalParameters estimation