fix error in card assignment

Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>