fixed bug on copy of empty repo