save the logic after adding the slug.
Merge pull request #1121 from ontohub/hotfix_migration_for_logic_slugs

save the logic after adding the slug.