Fix stupid uri template expansion bug.