Vectoradd function zero divisor fix