fixed a bug to make it work with Node.js v0.10.10