Fixed global and parameter name inferring