fixed runtime issues with capybara