fixing up divide by zero