Fix in statistical secret algorithm