Fix setting template location