fix compatibility with node 0.10