fix dual modals bug