fix problems in cards