Fix bug on load template from plugin