fixed dialog when reflow