fix bug with capybara webkit crashing