fix error when card fails