Fix dialog reset