Fix legacy exports only if they're actually in legacy format