Fixed array index in AuthCode