fixed wrong order of clone commands