fixed dialog resizing issue