div by zero fixed, returning 0 in that case.