bug fix modal dialog