Control: Fixed endless loop when trying to fetch template