Fix where automation was wrapping on some browsers