author template loop fixed