fix bug where --copy does not copy