workaround for joyent/node#3172