replaceNaN fixed