fix bug in update deadline