card update delete bugfixing