Fix recursive cp issue