Fixed registration bug under Node.js