Invalid input: NaN

and if you add a debug one step before ? (ie what are you sending into that node...)