sketchy fix
fixed raising dist error