Fixed is_nan and co