Fixed bug during update of deadline