Issue with NaN on linux (temporary patch)