fixing issue where card would not get reset from local storage