added new script to fix migrated data