Returning NaN for div by zero