fix hitsperpage on template load