apply isnan fix