vector distance/norm bug fixed