fix issues after node.js upgrade