Undoing template