diff --git a/app/views/visits/index.html.haml b/app/views/visits/index.html.haml
index 1cfc2e5a7..b777d8bef 100644
--- a/app/views/visits/index.html.haml
+++ b/app/views/visits/index.html.haml
@@ -14,7 +14,7 @@
%tbody
- count = 0
- @analytics.onts.each do |visits|
- - ont = @ontologies_hash[visits[:ont].to_s]
+ - ont = @ontologies_hash[visits[:ont].to_s.split('/').last]
- next if ont.nil?
- count += 1
%tr