fix bug in update download