avoid nanf on linux