fix internal template links