fixing update script