Correction to failing node callback function