Fixed externals not to reference other named variables.