undo template fix