Update card bug error

The error when the user wanted to update a card has been corrected.