Made guard regen index on changes to any template