RFID-RC522 on Arduino Leonardo

I connect the RFID-RC522 to Uno and it works but I connect to Leonardo , it shows the error:

MFRC522 Software Version: 0xFF (unknown)
WARNING: Communication failure, is the MFRC522 properly connected?

I followed the instruction to connect the arduino (use ICSP to replace pin 11-13 )
and use the example of this library :

how can i fix the problem ?

Please post a wiring diagram of how you connected the board to the Leonardo, Include every wire!

use the example of this library :
GitHub - miguelbalboa/rfid: Arduino RFID Library for MFRC522

The library has 14 examples. Which one did you use for your tests? Did you use it verbatim or did you changes some constants?