fix #77 slow query on main page