fix compatible to nodejs 0.8