fixed pass number and version number in copying files