minor fix on update script