FIxed a error in PSO implementation