fixed bug causing wrong card name to be read