Fixed bug preventing to work on Node.js