fixed modals behaviour