Trying to fix the persistence problem for the dialogs.