workaround for disappearing dialogs
version