Corrected scopes for arrays