Solved a bug in the CMA-ES algorithm.