fixed the copy apps command