fix bug that templateUrl was written as template