fix load timing of templates