Fixes packageID for copied templates