fix bug causing card to not read