fixed error with normal distribution