Fix deprecated code
Fix project copy method