fixed bug with update script