fixed bugs with node 0.10.*