fix a bug in throwCard