more isnan() hacks