Set copy local flag to true on needed references