fixed bug in update script
problem description