bug in vector normalization fixed