Thank you all for your advice.
@zonitz – Thank you for your suggestion, I deleted the file in overlays as you sugested and used, sudo chown -R pi /opt/retropie/
After this I put the folder back and changed the path again in my retroarch.cfg for each system and it worked!
Again, thank you all.