fix: minor bug in path when copying