Serial loop stopped after a while, I don't know why
Add:

while(!Serial) ;


I'll make sure the Leonardo is in sync with the Serial communication.

It is the case because the Leonardo is USB native thus the Serial communication works differently.