Fix capybara errors