Fix counting local copies