Fix dialog opening