fix weirdness on V8