Fix dialog overflow