fix node v0.11+ compatibility