fix for euclidian patch from #108