Fixed globalOptions array issue.