fixed problem with deadline