fix copy-packages