Fixed div by zero bug on vector normalization