fix for #295. used erfi instead of erfinv