Correcting Some Bugs in delete card!