fix count_query in indexAction