Patch for mean, dividing by 0