fix loading from templateCache