Silly euclidean distance mistake fixed