added NAN to num conversion in avo