fixed node 0.6 compatibility