normalization of vectors with length 0 fix