Important fix for card resize