Fix bug "Cannot read undefined property of NormalDistribution"