fix the card dropdown opening a modal bug