Fixed crash with Luke's help - bug in node.js