RFID with RC522 Chip - Deleted trailer block problem

Hello everyone,

I have one question regarding the RFID library available at GitHub - miguelbalboa/rfid: Arduino RFID Library for MFRC522. I'm using a "PICC type: MIFARE 1KB" tag.

I used the "ReadAndWrite" example and wrote 16 zeros at block 7, the trailer block of sector 1. Every time I run "DumpInfo" i get "PCD_Authenticate() failed: Error in communication." at sector 1 and "PCD_Authenticate() failed: Timeout in communication"
at sector 0. When I try to run "ReadAndWrite" again I get "PCD_Authenticate() failed: Error in communication." and can't write anything anymore. Does anyone know how to fix it?

Any help i extremely appreciated!

Thank you,

Daniel