fixed errors with update script
fixed root reference in update script