sampled template bugs