Fix update bug
Improvement update script