Fix errors sharing templates