Fixed some issues with nodejs metric updating.