Script to fix sde after import