Check for zero before normalizing a vector.  Not sure why this is needed...