Fix problems with node v0.8