Fix globalOptions overwrite.