Fixed dialog style missing when reopening a dialog