An innocent man spent over 500 days in the Fulton County jail because his name was similar to that of a man who had failed to register as a sex offender, WSB-TV reports.

Randy Williams is a convicted child molester. Randy Wiggins, who suffers from mental health issues, is not. According to attorney David Paul Scott, Wiggins was arrested by police in June 2012 without his driver's license on him and was assumed to be Williams.

Despite the pleas of Wiggins and his family, he remained incarcerated for 525 days under the assumption that he was Williams, according to WSB-TV.