Fixed an issue with tuning standard deviation.