fixed duplicated modals.