Fixes the term migration for some documents