bugfix modal dialog