Fix content generation for migration