Fix dialog not scrolling bug