fixed the no tasks bug