Fix bugs in DialogHolder