fixed nfc reading code