fixed computation of edm along with sepcmaes