fix issue when copying projects