fix Base#dismiss_modal definition