Fixed broken update script