fix costs returned by PSO