fix bag with deadline. part 2)