Fixed dismiss behaviour on modal dialog (bbox widget)