Fixing repocopjson bug