fixed update script.