deadline bug fixed