bug fix
for new version of v8