fixed issue with copying packages