fixed bug when more than two cards clicked