fix bugs with domain module in node v0.8