some fix for dialogs