Because this code didn't match the code in getScalarReplacement() global(global(x)) could be handle inconsistently.