Fix dialog problem