Fix the card Repositioning issue