fixed bad template directive