fixing ODE-1016: taking NaN as possible value for numbers into account.