Fixes some NaN-related behaviour