Dialog bugfix