finding and fixing nan typo