Fix update script for script migration