Fixed issue caused by Node API change.