Fixed getTemplate and fire getTemplate flow