You’re forgetting to mention the religious bigotry aspect of the case. The partial fingerprint the Spanish police found matched at least 20 FBI records, but the FBI decided Mayfield was the one because he was a Muslim. (Mayfield had submitted fingerprints as part of a background check.) The FBI’s case to hold him centered around his religion, and the case was constructed around it; he went to a mosque where the imam was once connected to a suspicious character, as a lawyer he once defended a Muslim criminal, etc.
The FBI did apologize, eventually, after it became clear that all their rule breaking didn’t actually get the right person.
Let this go to show you, for every innocent person locked up, it means the real criminal is still on the loose.