diff --git a/app/views/posts/index.html.erb b/app/views/posts/index.html.erb
index b96eafa13..4eff24ec9 100644
--- a/app/views/posts/index.html.erb
+++ b/app/views/posts/index.html.erb
@@ -51,9 +51,9 @@
<% if post_search_counts_enabled? && @post_set.query.is_simple_tag? && @post_set.current_page == 1 %>
<% if @post_set.post_count == 0 %>
- <%= missed_post_search_count_js %>
+ <%= missed_post_search_count_js(@post_set) %>
<% else %>
- <%= post_search_count_js %>
+ <%= post_search_count_js(@post_set) %>
<% end %>
<% end %>