Fixed errors on node v0.8.