fix simulated annealing