fix issue: lazy load for xptemplate.