fixes capybara issues