add some fixes to normal_distribution