Fixed template uri bug