fix bug on Node.js