Fixed np.where divide by zero complain