Another fix of Metropolis algorithm.