fix bugs cards_controller.eb