Changed some spurious template writing