src: fixed a bug for node.js 0.11