Issue migrating galleries has created shortcode with urls rather than IDs – any fix for this?

Issue migrating galleries has created shortcode with urls rather than IDs – any fix for this?