Fixed index out from bounds error in oauth issuer