Fixed check for duplicate card

Fixes #74