template issue debugging