Fixed error with capybara