fix a bug that we intend to compare card equality by value