fix #4896

workaround for joyent/node#7288