Fix dialog close button in log template