fix capybara bug