Fixed bug in update script
Fixed bug in update script (publish v)