fix cards bug